package com.smedi.ismedi.authoritymanagement.core.port.adapter.persistence.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smedi.ismedi.database.starter.model.BasicFieldEntity;
import lombok.*;

import java.io.Serializable;

/**
 * 特种设备主表Entity类
 *
 * @author wangyufeng
 * @date 2022/07/13
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "ath_element")
public class ElementEntity extends BasicFieldEntity implements Serializable {

    /**
     * 父id
     */
    private Long parentId;

    /**
     * 角色名
     */
    @TableField(value = "element_name")
    private String name;

    /**
     * 编码
     */
    @TableField(value = "element_code")
    private String code;

    /**
     * 描述
     */
    @TableField(value = "element_description")
    private String description;

    /**
     * 类型
     */
    @TableField(value = "element_type")
    private String type;

    /**
     * 展示顺序
     */
    private Long displayOrder;
    
    /**
     * 是否初始化（无条件默认显示该元素）
     */
    @TableField(value = "is_initial")
    private Boolean initial;
}